package com.zjgsu.nftplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ahy231
 * @date 2022/3/4 12:07
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户拥有商品")
public class UserWare {
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("商品id")
    private Long wareId;
    @ApiModelProperty("nft id")
    private Long nftId;
    @ApiModelProperty("所有权/1，版权/2")
    private Integer type;
    @ApiModelProperty("拥有状态：拥有/1，不再拥有/2")
    private Integer status;
}
